﻿/*
 * PsTFS is a set of PowerShell commands to manage and use Team Foundation Server. PowerShell 
 * effectiveness is combined with the power of TFS API to maximizes TFS capabilities.
 * 
 * Creator : Choulant Noham
 * Mail : choulant@gmail.com
 * Blog : http://choulant.blogspot.com
 * 
 */

using System.Management.Automation;
using Microsoft.TeamFoundation.Client;
using PsTFS.Objects;

namespace PsTFS.Commandes.Get
{
    /// <summary>
    /// Liste des membres d'un projet
    /// </summary>
    [Cmdlet(VerbsCommon.Get, "IGroupSecurityService")]
    public class Get_IGroupSecurityService : PsCmdlet
    {
        /// <summary>
        /// Lancement du processus
        /// </summary>
        protected override void ProcessRecord()
        {
            WriteObject(Methode_Service.IGSS());

            base.ProcessRecord();
        }


        /// <summary>
        /// Permet de récupérer la fin de la commande
        /// </summary>
        protected override void EndProcessing()
        {
            Log.AddLog(null, "Get-IGroupSecurityService is end");
            base.EndProcessing();
        }

        /// <summary>
        /// Object contenant Team Foundation Server
        /// </summary>
        [Parameter(Position = 0)]
        public TfsTeamProjectCollection TFS
        {
            set { Context.Instance.TFS = value; }
        }
    }
}


